import store from '@/store'
const per = (el, bindings) => {
  // 初始化
  console.log(el, bindings)
  // 获取当前角色
  var roles = store.getters.roles
  // 判断角色是否不在,当前的bindings.value中
  if (!bindings.value.includes(roles)) {
    // 删除当前el
    el && el.remove()
  }
}
export default {
  inserted (el, bindings) {
    per(el, bindings)
  },
  updated (el, bindings) {
    // 更新后
    per(el, bindings)
  }
}
/*

*/
